package com.victor.entity.ticketorder;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.victor.entity.jingqu.Jingqulist;
import com.victor.entity.jingqu.Jingqutickets;
import com.victor.entity.user.User;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Entity
@Table(name = "t_ticketorders")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TicketOrders {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;// 主键id,
	
	@Column(name="uid",length=50)
	private String uid;//下单人id
	
	@Column(name="useflag",length=50)
	private String useflag;//0-全部订单  1-待付款 2-待使用 3-待评价 4-带退款
	
	@Column(name="flag",length=50)
	private String flag;//订单状态  0-景点  1-出行  2-酒店美食娱乐
	
	@Column(name="jqlistid",length=50)
	private String jqlistid;//景区列表id（商家id）
	
	@Column(name="ordername",length=50)
	private String ordername;//景区名称(景区列表)（商家名称）
	
	@Column(name="jqticketid",length=50)
	private String jqticketid;//景区门票id （套餐id）
	
	@Column(name="orderprice",length=50)
	private String orderprice;//订单价格(景区门票)
	
	@Column(name="uname",length=50)
	private String uname;//下单用户昵称
	
	@Column(name="ordertime",length=50)
	private String ordertime;//下单时间
	
	@Column(name="ordernumber",length=200)
	private String ordernumber;//订单号
	
	@Column(name="xc_classid",length=50)
	private String xc_classid;//行程分类id
	
	@Column(name="contentphone",length=50)
	private String contentphone;//联系方式
	
	@Column(name="contentname",length=50)
	private String contentname;//联系方式
	
	@Column(name="photo",length=100)
	private String photo;//封面图
	
	@Column(name="paystate",length=100)
	private String paystate;//支付方式
	
	//景区
	@Column(name="usetime",length=50)
	private String usetime;//景区 选择时间
	
	//宾馆
	@Column(name="starttime",length=50)
	private String starttime;// 入住时间
	
	@Column(name="endtime",length=50)
	private String endtime;//离开时间
	
	@Column(name="expecttime",length=50)
	private String expecttime;//预计到店时间
	
//	@Transient
//	private XcClass xcClass;//行程分类信息
	
	@Transient
	private User user;
	
	@Transient
	private Jingqulist jingqulist;
	
	@Transient
	private Jingqutickets jingqutickets;
	
	@Transient
	private List<TicketorderUser> ticketorderUsers;//出行人
}
